<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
<meta name="decorator" content="statementIndex" />

<script type="text/javascript">
	function getUrl(url) {
		$("#paymentDetailFrame").attr("src", url);
	}
</script>
</head>
<body>
	<div class="panel panel-default">
		<div class="col-xs-12 panel-heading">
			<h2 class="panel-title o-v-action">
				<a class="btn btn-default pull-right" role="button"
					href="javascript:void(0)" onclick="history.go(-1)">返回</a> <a
					class="btn btn-primary btn-sm pull-right" role="button"
					href="${contextPath}/statement/stm/counter/${stmSelfrun.billNo}/confirm">确认对账</a>
			</h2>
		</div>
		<div>
			<ul class="nav nav-tabs" id="myTab">
				<li class="active"><a href="#home" data-toggle="tab">专柜对账详细信息</a></li>
				<li><a href="#history" data-toggle="tab"
					onclick="getUrl('${contextPath}/statement/stm/selfrun/${stmSelfrun.billNo}/getPayment')">扣款明细</a></li>

			</ul>
			<div class="tab-content">
				<div class="tab-pane active" id="home">
					<table class="table table-bordered">
						<tbody>
							<tr>
								<td class="text-right" style="width: 20%"><strong>是否对账:</strong></td>
								<td><c:if test="${stmSelfrun.isReconciliation==1}">未对账</c:if>
									<c:if test="${stmSelfrun.isReconciliation==2}">已对账</c:if></td>
							</tr>
							<tr>
								<td class="text-right"><strong>结算单号:</strong></td>
								<td>${stmSelfrun.billNo}</td>
							</tr>

							<tr>
								<td class="text-right"><strong>结算起始时间:</strong></td>
								<td><fmt:formatDate value="${stmSelfrun.startTime}"
										pattern="yyyy-MM-dd" /></td>
							</tr>
							<tr>
								<td class="text-right"><strong>结算结束时间:</strong></td>
								<td><fmt:formatDate value="${stmSelfrun.endTime}"
										pattern="yyyy-MM-dd" /></td>
							</tr>

							<tr>
								<td class="text-right"><strong>供应商编号:</strong></td>
								<td>${stmSelfrun.supplierNo}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>供应商名称:</strong></td>
								<td>${stmSelfrun.supplierName}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>本期销售额:</strong></td>
								<td>${stmSelfrun.sales}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>销售成本:</strong></td>
								<td>${stmSelfrun.saleCost}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>本期调价:</strong></td>
								<td>${stmSelfrun.priceAdjustment}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>本期促销调价:</strong></td>
								<td>${stmSelfrun.promotionPrice}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>折扣分摊:</strong></td>
								<td>${stmSelfrun.discountAllocation}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>返利:</strong></td>
								<td>${stmSelfrun.bebate}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>本期扣款:</strong></td>
								<td>${stmSelfrun.deductMoney}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>本期实际成本:</strong></td>
								<td>${stmSelfrun.actualCost}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>本期实付金额:</strong></td>
								<td>${stmSelfrun.amountPaid}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>隶属会计期间:</strong></td>
								<td>${stmSelfrun.period}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>会员卡折让:</strong></td>
								<td>${stmSelfrun.vipDiscount}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>会员卡折让比率:</strong></td>
								<td>${stmSelfrun.vipdiscountRatio}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>磁卡消费:</strong></td>
								<td>${stmSelfrun.magcard}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>磁卡折让比率:</strong></td>
								<td>${stmSelfrun.magcardDiscountRatio}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>银行卡消费:</strong></td>
								<td>${stmSelfrun.bankcard}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>银行卡折让比率:</strong></td>
								<td>${stmSelfrun.bankcardDiscountRatio}</td>
							</tr>
							<tr>
								<td class="text-right"><strong>异常:</strong></td>
								<td><a
									href="${contextPath}/statement/stm/selfrun/${stmSelfrun.billNo}/add">添加专柜异常</a></td>
							</tr>
						</tbody>
					</table>
					<div class="panel-footer"></div>
				</div>
				<div class="tab-pane" id="history">
					<iframe id="paymentDetailFrame" name="paymentDetailName"
						scrolling="no" frameborder="no" width="100%"></iframe>
				</div>
			</div>
		</div>
	</div>
</body>
</html>